/*
 * @Date: 2024-01-12 17:19:44
 * @LastEditors: truman
 * @LastEditTime: 2024-03-09 16:28:16
 * @FilePath: \newbee-mall-vue3-app\src\service\home.js
 */
/**
 * 严肃声明：
 * 开源版本请务必保留此注释头信息，若删除我方将保留所有法律责任追究！
 * 本系统已申请软件著作权，受国家版权局知识产权以及国家计算机软件著作权保护！
 * 可正常分享和学习源码，不得用于违法犯罪活动，违者必究！
 * Copyright (c) 2020 陈尼克 all rights reserved.
 * 版权所有，侵权必究！
 */

import axios from '../utils/axios'

export function getHome() {
  return axios.get('/index-infos');
}

export function getKeyword(params) {
  return axios.get('/recruit/position/page/keyword', { params });
}
export function getBy(id, page, count) {
  return axios.get('/recruit/position/page/hr/' + id, { page, count });
}
export function deleteProduct(id) {
  return axios.delete('/recruit/position/' + id);
}

export function getWechatInfoByCode(code) {
  return axios.get(`/recruit/user/weChat/wx/auth/` + code );
}

